package net.lmc.realtime.traffic.service;


import net.lmc.realtime.traffic.bean.TrafficMonitoring;
import net.lmc.realtime.traffic.bean.TransportationMetrics;
import net.lmc.realtime.traffic.mapper.TransportationMapper;
import net.lmc.realtime.traffic.mapper.TransportstionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 26374
 */
@Service
public class TransportationImpl implements TransportationService{

    @Autowired(required = false)
    TransportationMapper transportationMapper;
    @Override
    public List<TransportationMetrics> selectCityOverview(String date) {
        return transportationMapper.selectCityOverview(date);
    }

    @Autowired(required = false)
    TransportstionMapper trafficmapper;


    @Override
    public List<TrafficMonitoring> getTrafficMonitoring() {
        return trafficmapper.selectTop();
    }

}
